package com.sbj.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sbj.dto.req.ExtensionReq;
import com.sbj.dto.res.ExtensionRes;
import com.sbj.entity.Extension;

import java.math.BigDecimal;

/**
 * @author summer
 * @version 1.0
 * @date 2024/8/11 10:09
 */
public interface ExtensionService extends IService<Extension> {

    /**
     * 查询列表
     * @param extensionReq
     * @return
     */
    Page<ExtensionRes> lists(ExtensionReq extensionReq);

    /**
     * 保存推广、奖金金额
     * @param goodsPrice
     */
    void saveExtension(BigDecimal goodsPrice,Integer type);
}
